<?php $this->load->module('mobile/index/header', $common);?>
<style>
    .keyContent a{
        width:22%!important;
        margin-right:2%!important;
    }
    .keyContent a:nth-child(4n){
        width:22%!important;
        margin-right:0!important;
    }
</style>
<div class="searchKey" style="display:block">
    <div class="Keyfilter">出发城市</div>
    <div class="keyContent contentFilter">
        <a onclick="choose(this)" class="this" name="city" data="0">全部</a>
        <?php foreach ($departure_city as $cityid => $city) { ?>
            <a onclick="choose(this)" href="javascript:;" name="city" data="<?php echo $cityid?>"><?php echo $city?></a>
        <?php }?>
    </div>
</div>
<div class="searchKey">
    <div class="Keyfilter">目的地</div>
    <div class="keyContent contentFilter mjd">
        <ul><li><a onclick="choose(this)" class="this" name="dcity" data="0">全部</a>
            <?php foreach($dist_city as $k => $v){?>
                <a  onclick="choose(this)" href="javascript:;" name="dcity" data="<?php echo $k?>"><?php echo $v?></a>
            <?php }?>
            </li>
<!--            <li><a href="#">温泉</a></li>-->
<!--            <li class="second-attractions">-->
<!--                <div class="filter-arrow-top"><i></i></div>-->
<!--                <a href="#">仙坛山温泉</a><a href="#">天沐温泉</a><a href="#">商河温泉</a><a href="#">德百温泉</a><a href="#">阿尔卡迪亚温泉</a></li>-->
        </ul>
    </div>
</div>
<div class="searchKey" style="display:block">
    <div class="Keyfilter">行程天数</div>
    <div class="keyContent contentFilter dayFilter">
    <a  onclick="choose(this)" class="this" name="day" data="0">全部</a>
    <?php foreach($travel_days as $k => $v){?>
        <a  onclick="choose(this)" href="javascript:;" name="day" data="<?php echo $v?>"><?php echo $v?>天</a>
    <?php }?>
    </div>
</div>
<!--<div class="searchKey">-->
<!--    <div class="Keyfilter"> 价格区间</div>-->
<!--    <div class="keyContent contentFilter priceFilter">-->
<!--        <input type="text" id="bprice">-->
<!--        ~-->
<!--        <input type="text" id="eprice">-->
<!--    </div>-->
<!--</div>-->
<div class="bottom_button">
    <input type="button" class="submitButton" value="完成" onclick="filter_choose()">
</div>
<script type="text/javascript">
    function choose(obj){
        $(obj).addClass('this');
        $(obj).siblings().removeClass('this');
    }
    function filter_choose(){
        var post = '';
        $('.this').each(function(){
            var name = $(this).attr('name');
            var value = $(this).attr('data');
            post += '&'+name+'='+value;
        });
        window.location.href = '<?php echo site_url('mobile/line/?cat_id='.$_GET['cat_id'])?>' + post;
    }
</script>
<?php $this->load->module('mobile/index/footer', $common);?>